package com.heima.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.heima.pojo.dto.PartnerDto;
import com.heima.pojo.dto.PartnerSearchDto;
import com.heima.pojo.entity.Partner;
import com.heima.pojo.vo.PartnerVO;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface PartnerMapper extends BaseMapper<Partner> {
    @Select("select * from tb_partner where name=#{name} or mobile=#{mobile}")
    Partner selectByCondition(PartnerDto partnerDto);

    List<PartnerVO> pageQuery(PartnerSearchDto partnerSearchDto);

    PartnerVO findById(Integer id);
}
